<?php
$currentPage = $this->leftMenuID;

if ($currentPage > 0) {
    // get all category has assigned from indexAction.
    $allCategory = $this->allCategory;

    // get current node
    $leftMenu = $allCategory[$currentPage];
    if (isset($leftMenu['children']) && count($leftMenu['children']) > 0) {
        echo "<ul>";
        foreach($leftMenu['children'] as $item):
?>
        <li><a href="<?php echo BASE_PATH . '/' . CURR_APP ?>?pid=<?php echo $allCategory[$item]['category_id'];?>"><?php echo $allCategory[$item]['admin_title'];?></a></li>
<?php
    endforeach;
        echo "</ul>";
    } // count left children
?>

<?php } // if currentPage?>